
<div class="titlebar">
    <div class="fn-left button-group">
        {if $vip_id}
        <a href="javascript:;" url="{:url('vip.user/winuser',['vip_id'=> $vip_id])}" class="button button-blue win"><i class="iconfont icon-add_icon"></i>增加 {$info.name} 会员用户</a>
        {else}
        <a href="javascript:;" class="button button-disabled"><i class="iconfont icon-add_icon"></i>增加会员用户</a>
        {/if}
    </div>
    <div class="fn-right">
        <form class="input-group" id="form" action="{:url('vip.user/index')}">
            <input type="hidden" name="time" value="{$time}" />
            <input type="hidden" name="types" value="{$types}" />
            <input type="hidden" name="vip_id" value="{$vip_id}" />
            <input url="{:url('system/passport.user/selectUser')}" id="uid"  placeholder="用户ID" class="input w100 selectID" type="text" name="uid" value="{$uid}" />
            <input placeholder="开始时间" class="input w100 ui-date" type="text" name="starttime" readonly autocomplete="false" value="{$starttime}"/>
            <input placeholder="结束时间" class="input w100 ui-date" type="text" name="endtime" readonly autocomplete="false" value="{$endtime}"/> 
            <input type="submit" value="搜索" class="button button-blue" />
        </form>
    </div>
    <div class="fn-right button-group">
        <a href="{:url('vip.user/index',['time' => 1,'types'=>0,'vip_id'=> $vip_id])}" class="button {$time==1?'button-violet':''}">今日</a>
        <a href="{:url('vip.user/index',['time' => 2,'types'=>0,'vip_id'=> $vip_id])}" class="button {$time==2?'button-violet':''}">昨日</a>
        <a href="{:url('vip.user/index',['time' => 30,'types'=>0,'vip_id'=> $vip_id])}" class="button {$time==30?'button-violet':''}"">本月</a>
        <a href="{:url('vip.user/index',['time' => 60,'types'=>0,'vip_id'=> $vip_id])}" class="button {$time==60?'button-violet':''}"">上月</a>
    </div>
    <div class="fn-right button-group">
        <a href="{:url('vip.user/index',['time'=>$time,'types'=>0,'vip_id'=> $vip_id])}" class="button{if $types == 0} button-violet{/if}">正常</a>
        <a href="{:url('vip.user/index',['time'=>$time,'types'=>1,'vip_id'=> $vip_id])}" class="button{if $types == 1} button-violet{/if}">锁定</a>
    </div>
    <div class="fn-right button-group">
        {volist name="vip" id="vo"}
            <a href="{:url('vip.user/index',['time'=>$time,'types' => $types,'vip_id' => $vo.id])}" class="button{if $vip_id == $vo.id} button-green{/if}">{$vo.name}</a>
        {/volist}
    </div>
</div>
<table class="table table-border">
    <thead>
        <tr>
            <th class="w160">关系</th>
            <th class="w240">会员</th>
            <th class="w60 fn-tac"></th>
            <th>昵称</th>
            <th class="w60 fn-tac">状态</th>
            <th class="w120 fn-tac">开通时间</th>
            <th class="w70 fn-tac">删除</th>
        </tr>
    </thead>
    <tbody>
        {foreach $lists as $vo}
        <tr>
            <td class="button-group"> 
                <a class="button button-green win" href="javascript:;" url="{:url('system/passport.user/pyramid',['id'=>$vo.uid])}" title="伞下"><i class="iconfont icon-iconset0280"></i>伞下</a>
                <a class="button button-red win"  href="javascript:;" url="{:url('system/passport.user/level',['id'=>$vo.uid])}" title="溯源"><i class="iconfont icon-lianjie"></i>溯源</a>
            </td>
            <td><a class="win" href="javascript:;" url="{:url('vip.index/edit',['id'=>$vo.vip_id])}" title="关系">{$vo.vip.name}</a></td>
            <td class="fn-tac"><img src="{$vo.user.face}" class="w40" /></td>
            <td><a class="win" href="javascript:;" url="{:url('bank/bill',['uid' =>$vo.uid])}">{$vo.user.nickname}</a></td>
            <td class="fn-tac">{if $vo.is_lock}<span class="badge bg-red m5">锁定</span>{else}<span class="badge m5">正常</span>{/if}</td>
            <td class="fn-tac">{$vo.update_time|date="Y-m-d"}</td>
            <td class="fn-tac"><a class="button isDel" url="{:url('vip.user/delete',['uid'=>$vo.uid])}" href="javascript:;" title="删除">删除</a></td>
        </tr>
        {/foreach}
    </tbody>
</table>
{$lists|raw}
<script type="text/javascript">
Do('base','form','layer','tip','date', function () {
    $('#form').isForm({types:1});
    $('.isDel').isDel();
    $('.win').win({reload:1});
})
</script>